package net.wwang.blog.pojo;

import lombok.Data;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;
import java.sql.Timestamp;


@EntityListeners(AuditingEntityListener.class)
@Data
@Entity
@Table(name = "link")
public class Link {

  @Id
  @Column(name = "id")
  private String id;
  @Column(name = "name")
  private String name;
  @Column(name = "logo")
  private String logo;
  @Column(name = "url")
  private String url;
  @Column(name = "order")
  private long order;
  @Column(name = "state")
  private String state;
  @CreatedDate
  @Column(name = "create_time")
  private Timestamp createTime;
  @LastModifiedDate
  @Column(name = "modify_time")
  private Timestamp updateTime;

}
